<?php


	namespace app\api\validate;


	class LoginValidate extends BaseValidate {

		protected $rule = [
			['code','require|isNotEmpty','code必须存在|code不能为空'],
			['data','require|isNotEmpty','data必须存在|data不能为空'],
			['iv','require|isNotEmpty','iv必须存在|iv不能为空'],
			['sessionKey','require|isNotEmpty','sessionKey必须存在|sessionKey不能为空'],
			['token','require|isNotEmpty','token必须存在|token不能为空'],
		];

		protected  $scene = [
			'login'=>['code'],
			'saveUserInfo'=>['data','iv','sessionKey'],
			'getPhoneNumber'=>['data','iv','sessionKey'],
			'verifyToken'=>['token'],
		];

	}